<%@ taglib prefix="s" uri="/struts-tags"%>

<div id="header">
	<div class="header-menu-1 left">
		<table class="rootVoices" cellspacing="0" cellpadding="0" border="0">
			<tr> 
		       	<td class="rootVoice {menu: 'main_menu'}">
		       		<s:text name="link.menu"/>
		       	</td>
		       	<s:if test="#session.member != null">
		       	<td class="rootVoice {menu: 'empty'}" onclick="location.href='${pageContext.request.contextPath}/member/profile.action'">
		       		<s:text name="link.profile"/>
		       	</td>
		       	</s:if>
			</tr>
		</table>
	</div>
	<div class="header-menu-2 right">
		<table class="rootVoices" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<s:if test="#session.member == null">
		       	<td class="rootVoice {menu: 'login'}">
	  				<s:text name="link.signin"/>
		       	</td>
		       	<td class="rootVoice {menu: 'empty'}" onclick="location.href='sign-up.action'">
	  				<s:text name="link.signup"/>
		       	</td>
		       	</s:if>
		       	<s:else>
		       	<td class="rootVoice {menu: 'empty'}" onclick="location.href='${pageContext.request.contextPath}/sign-off.action'">
	  				<s:text name="link.signoff"/>
		       	</td>
		       	</s:else>
			</tr>
		</table>
	</div>
	<div class="clear-both"></div>
</div>

<!-- menu items -->
<div id="main_menu" class="mbmenu boxMenu"> 
	<table style="border:0;" > 
	    <tr> 
	      <td> 
	        <div style="height:130px"><img src="http://patapage.net/pp/images/logo.png" alt="patapage" width="150"></div> 
	        <a href="${pageContext.request.contextPath}/home.action">Home</a> 
	        <a href="http://patapage.com/demo/" target="_blank">Demo page</a> 
	        <a href="http://patapage.com/applications/pataPage/site/aboutHelp.jsp" target="_blank">About Patapage</a> 
	        <a href="http://patapage.com/applications/pataPage/site/access/login.jsp" target="_blank">Sign up</a> 
	      </td> 
	      <td> 
	        <div style="height:130px;"><img src="http://bugsvoice.com/applications/bugsVoice/images/logo.png" alt="bugsvoice" width="250" style="padding-top:30px"></div> 
	        <a href="http://bugsvoice.com" target="_blank">Home</a> 
	        <a href="http://bugsvoice.com/applications/bugsVoice/site/details.jsp" target="_blank">Details</a> 
	        <a href="http://bugsvoice.com/applications/bugsVoice/site/aboutHelp.jsp" target="_blank">About Bugs Voice</a> 
	        <a href="http://bugsvoice.com/applications/bugsVoice/site/access/login.jsp" target="_blank">Sign up</a> 
	      </td> 
	      <td> 
	        <div style="height:130px"><img src="http://devineu.eu/applications/webwork/site_devineu/media/baloonSmall.png" alt="bugsvoice" width="200"></div> 
	        <a href="http://devineu.eu/home.page" target="_blank">Home</a> 
	        <a href="http://devineu.eu/mission.page" target="_blank">Mission</a> 
	        <a href="http://devineu.eu/interviewyourself.page" target="_blank">Interview yourself</a> 
	        <a href="http://devineu.eu/getInterviewed.page" target="_blank">Get interviewed</a> 
	      </td> 
	    </tr> 
	</table> 
</div>

<div id="login" class="mbmenu" id="checkMenu"> 
    <a rel="text">
    	<s:form id="signInForm2" action="sign-in-menu" theme="simple">
			<p>
				<label for="email" class="label"><s:text name="email"/>:</label> 
			 	<input type="text" id="email" name="email"/>
			</p>
			<p>
				<label for="password" class="label"><s:text name="password"/>:</label> 
			 	<input type="password" id="password" name="password"/>
			</p>
			<p class="buttonDiv">
				<img id="sib-indicator" src="images/indicator.gif" alt="Loading..." style="display:none"/>
				<s:submit key="btn.signin" onclick="$.fn.removeMbMenu($.mbMenu.options.actualOpenedMenu,true);"/>
			</p>
		</s:form>
    </a>
</div> 